﻿using System.Web;
using CooliteExamples.Code.DAL;
using CooliteExamples.Web.Code;

namespace CooliteExamples.Web.Handlers.Book
{
		public class GetAllBooks : HandlerBase
		{
				public override void ProcessRequest(HttpContext context)
				{
						var bookList = BookDal.GetBooks();
						var asr = new AjaxStoreResult(bookList);

						asr.ExecuteResult(context);
				}
		}
}
